-- target_damage1
-- created by wangy
-- 对特定怪物造成额外伤害（佐罗的面罩属性专用）

return {
    apply = function(prop, baseValue)
        -- 返回额外的伤害值
        return math.modf(baseValue * prop[3] / 1000);
    end,

    desc = function(prop)
        local row  = PropM.getRow(prop[1]);
        local desc = row.desc;
        local ron  = tonumber(prop[3]) / 10;
        local dungeonId = DungeonM.getDungeonId();
        local classId   = FormulaM.invoke("CALC_ZOORO_MONSTER_DEMAND", dungeonId);
        local name = MonsterM.query(classId, "name");

        desc = string.gsub(desc, "{0}", name);
        desc = string.gsub(desc, "{1}", ron);

        return desc;
    end,

    record = function(target, prop, path)
        return false;
    end
};